<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="../common/tags.jsp"%>
<%@include file="../common/head.jsp"%>
<%@include file="../common/nocache.jsp"%>
<head>
	<title>清华 精品团课</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta http-equiv="keywords" content="todo,plan,task,backlog"/>
	<script type="text/javascript">
		function confirmUrl(url,msg) {
			if(confirm(msg)) {
				document.location.href=url;
			}
		}
	</script>
</head>
<body>
<div class="menu">
<%@include file="../common/menu.jsp"%>
</div>
	<h3>课程管理</h3>
   <a href="publishInfo.do?m=addLesson">添加课程</a>
   <br/>
  <table border="1" align="left">
   <tr>
    <td>序号</td>  
   	<td>课程名称</td>
   	<td>发布信息</td>
	<td>课程价格</td>
	<td>课程介绍</td>
   	<td>操作</td>
   </tr>
   <c:forEach var="each" items="${allLesson}" varStatus="s">
	<tr>
      <td>${s.index}&nbsp;</td>
	  <td>${each.name}&nbsp;</td>
	  <td>${each.description}&nbsp;</td>
	  <td>${each.cost}元/人</td>
	  <td>${each.detailInfo}</td>
	  <td>
	  		<a href="publishInfo.do?m=editLesson&lessonId=${each.id }">修改</a>&nbsp;
	  		<a href="javascript:confirmUrl('publishInfo.do?m=delLesson&lessonId=${each.id }','确认删除？')">删除</a>&nbsp;
	  </td>
	</tr>
	
  </c:forEach>
  </table>
 

  </body>
</html>
